import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  park_code: [{ required: true, message: "请选择停车场", trigger: "blur" }],
  much_id: [{ required: true, message: "请选择商户", trigger: "blur" }],
  in_time: [{ required: true, message: "请选择入场时间", trigger: "blur" }],
  car_number: [{ required: true, message: "车牌号为必填项", trigger: "blur" }],
  car_no_color: [{ required: true, message: "请选择车牌颜色", trigger: "blur" }]
});
